package cn.wolfcode.qo;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import java.util.Date;


@Setter
@Getter
public class ConsumptionReportQueryObject extends QueryObject {
    private String groupType = "b.name";
    private int businessId = -1;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    //private String groupType = "YEAR(c.pay_time)";
    //private String groupType = "DATE_FORMAT(c.pay_time,'%Y-%m')";
    //private String groupType = "DATE_FORMAT(c.pay_time,'%Y-%m-%d')";

}
